﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ArticleTypeReportList.aspx.cs"
    Inherits="ArticleTypeReportList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="css/jquery-ui.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery-ui.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        $(function () {
            BindBtn();
            AddTrClass($("#listinfo"));
            $("#txtBeginTime").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd" });
            $("#txtEndTime").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd" });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="conBox">
        <table class="form-table">
            <thead>
                <tr>
                    <td colspan="3">
                        查询选项
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr class="tr1">
                    <td class="oneTd">
                        <div>
                            用户：<asp:DropDownList ID="ddlUser" runat="server">
                                <asp:ListItem Value="0" Text="所有用户"></asp:ListItem>
                            </asp:DropDownList>
                            关键字：<asp:TextBox ID="txtName" runat="server" CssClass="txtbox"></asp:TextBox>
                            分类：<asp:DropDownList ID="ddlSort" runat="server">
                                <asp:ListItem Value="0" Text="所有分类"></asp:ListItem>
                            </asp:DropDownList>
                            日期：<asp:TextBox ID="txtBeginTime" runat="server" CssClass="txtbox" Style="width: 100px"></asp:TextBox>至<asp:TextBox ID="txtEndTime" runat="server" CssClass="txtbox" Style="width: 100px"></asp:TextBox>
                            </div>
                    </td>
                </tr>
                 <tr>
                    <td class="oneTd">
                        <div>
                        自动锁定：<asp:DropDownList ID="ddlSysLock" runat="server">
                                  <asp:ListItem Value="-1" Text="所有"></asp:ListItem>
                                  <asp:ListItem Value="1" Text="锁定"></asp:ListItem>
                                  <asp:ListItem Value="0" Text="非锁定"></asp:ListItem>
                                  </asp:DropDownList>
                            手动锁定：<asp:DropDownList ID="ddlDiyLock" runat="server">
                                  <asp:ListItem Value="-1" Text="所有"></asp:ListItem>
                                  <asp:ListItem Value="1" Text="锁定"></asp:ListItem>
                                  <asp:ListItem Value="0" Text="非锁定"></asp:ListItem>
                                  </asp:DropDownList>
                    新闻源录入数：从<asp:TextBox ID="txtBeginNewsIndex" runat="server" Width="40" CssClass="txtbox" Text=""></asp:TextBox>至<asp:TextBox ID="txtEndNewsIndex" runat="server" Width="40" CssClass="txtbox" Text=""></asp:TextBox>
                    外链录入数：从<asp:TextBox ID="txtBeginLinkIndex" runat="server" Width="40" CssClass="txtbox" Text=""></asp:TextBox>至<asp:TextBox ID="txtEndLinkIndex" runat="server" Width="40" CssClass="txtbox" Text=""></asp:TextBox>
                        <asp:Button ID="btnSubmit" runat="server" Text="查询" OnClick="btnSubmit_Click" CssClass="button" />
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="grid-box">
            <table class="grid-table">
                <thead>
                    <tr>
                        <th class="align-l" style="width: 50px;">
                            序号
                        </th>
                        <td class="align-l">
                            关键字
                        </td>
                        <td class="align-l">
                            新闻源录入数
                        </td>
                        <td class="align-l">
                            新闻源提成数
                        </td>
                        <td class="align-l">
                            外链录入数
                        </td>
                        <td class="align-l">
                            外链提成数
                        </td>
                        <td class="align-l">
                            提成系数
                        </td>
                        <td class="align-c" style="width: 60px;">
                            自动锁定
                        </td>
                        <td class="align-c" style="width: 60px;">
                            手动锁定
                        </td>
                        <td class="align-l" style="width: 80px;">
                            日期
                        </td>
                    </tr>
                </thead>
                <tbody id="listinfo">
                    <asp:Repeater ID="rptKeywords" runat="server" OnItemCommand="rptKeywords_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#nNum++%>
                                </td>
                                <td>
                                    <%#Server.HtmlEncode(Eval("Name").ToString())%>
                                </td>
                                 <td>
                                    <%#string.IsNullOrEmpty(Eval("AllNewsCount").ToString())?"0":Eval("AllNewsCount")%>
                                </td>
                                <td>
                                    <%#string.IsNullOrEmpty(Eval("NewsCount").ToString()) ? "0" : Eval("NewsCount")%>
                                </td>
                                <td>
                                    <%#string.IsNullOrEmpty(Eval("AllLinkCount").ToString()) ? "0" : Eval("AllLinkCount")%>
                                </td>
                                 <td>
                                    <%#string.IsNullOrEmpty(Eval("LinkCount").ToString()) ? "0" : Eval("LinkCount")%>
                                </td>
                                <td>
                                    <%#Eval("Scale")%>
                                </td>
                                <td class='align-c'>
                                    <asp:ImageButton ID="btnSysLock" CommandName="SetSysLock" CommandArgument='<%#Eval("ID")+","+Eval("SysLock")%>'
                                        ImageUrl='<%#Convert.ToBoolean(Eval("SysLock"))?"images/open.gif":"images/close.gif"%>'
                                        runat="server" />
                                </td>
                                <td class='align-c'>
                                    <asp:ImageButton ID="btnDiyLock" CommandName="SetDiyLock" CommandArgument='<%#Eval("ID")+","+Eval("DiyLock")%>'
                                        ImageUrl='<%#Convert.ToBoolean(Eval("DiyLock"))?"images/open.gif":"images/close.gif"%>'
                                        runat="server" />
                                </td>
                                <td>
                                    <%#BeginDateTime%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div id="noData" runat="server">
                <div class="noDateMsg">
                    没有任何信息！</div>
            </div>
            <div id="pageinfo" class="page">
                <webdiyer:AspNetPager ID="anpPage" runat="server" OnPageChanging="anpPage_PageChanging"
                    CurrentPageButtonClass="curPage" PageSize="100" AlwaysShow="true" ShowCustomInfoSection="left" CustomInfoTextAlign="Left" LayoutType="Table">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
